package v1

type AdiminRequest struct {
	Account  string `json:"Account" binding:"required"`
	Password string `json:"Password" binding:"required" `
}
type AdiminResponse struct {
	Token string `json:"token"`
}
type UserRequest struct {
	Account  string `json:"account" binding:"required"`
	Password string `json:"password" binding:"required" `
}
type AdiminCreateUserRequest struct {
	Account  string `json:"account" binding:"required"`
	Password string `json:"password" binding:"required" `
	Name     string `json:"name" binding:"required" `
}
type UsersLoginRequest struct {
	Account  string `json:"account" binding:"required"`
	Password string `json:"password" binding:"required" `
}
type UsersResponse struct {
	ID    uint   `json:"id"`
	Token string `json:"token"`
}

//重置密码
type ResetPasswordRequest struct {
	Password string `json:"password" `
}
type QueryAllUserResponse struct {
	ID   uint   `json:"id"`
	Name string `json:"name"`
}
